package tmt.usercenter.web.domain.enums;

import com.tmt.annotation.EnumDescriptor;
import com.tmt.annotation.parser.EnumAnnotationParser;

public enum OperationType {

    @EnumDescriptor(title="MENU", description = "菜单")
    MENU,

    @EnumDescriptor(title="ACTION", description = "操作")
    ACTION;

    public static OperationType from(String title) {
        return EnumAnnotationParser.convertFromTitle(OperationType.class, title);
    }

}
